// 获取指定openId的config
'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const res = await db.collection('config').where({open_id:event.open_id}).get()
	return { data: res.data, code: 200, 'msg': 'ok' }
};
